Termination w.r.t. Q of the following Term Rewriting System could not be shown:

Q restricted rewrite system:
The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(V) → ACTIVATE(V)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → U631(isNatIList(activate(V2)))
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ACTIVATE(n__0) → 01
ISNATKIND(n__length(V1)) → ACTIVATE(V1)
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
LENGTH(cons(N, L)) → ISNAT(N)
ISNAT(n__length(V1)) → U111(isNatIListKind(activate(V1)), activate(V1))
ISNATKIND(n__length(V1)) → ISNATILISTKIND(activate(V1))
ACTIVATE(n__length(X)) → LENGTH(X)
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → U121(isNatList(activate(V1)))
TAKE(0, IL) → ISNATILIST(IL)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
U611(tt, V1, V2) → ACTIVATE(V2)
U421(tt, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
U411(tt, V1, V2) → ISNAT(activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U511(tt, V1, V2) → ACTIVATE(V1)
U911(tt, IL, M, N) → CONS(activate(N), n__take(activate(M), activate(IL)))
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
LENGTH(cons(N, L)) → AND(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N)))
TAKE(s(M), cons(N, IL)) → ISNAT(N)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
U411(tt, V1, V2) → ACTIVATE(V1)
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
U421(tt, V2) → U431(isNatIList(activate(V2)))
U711(tt, L) → ACTIVATE(L)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ZEROSCONS(0, n__zeros)
U911(tt, IL, M, N) → ACTIVATE(IL)
U111(tt, V1) → ISNATLIST(activate(V1))
U511(tt, V1, V2) → ACTIVATE(V2)
U711(tt, L) → LENGTH(activate(L))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U611(tt, V1, V2) → ISNAT(activate(V1))
U521(tt, V2) → ISNATLIST(activate(V2))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(N)
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ACTIVATE(n__cons(X1, X2)) → CONS(X1, X2)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
LENGTH(nil) → 01
ACTIVATE(n__zeros) → ZEROS
U811(tt) → NIL
U521(tt, V2) → U531(isNatList(activate(V2)))
LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
ACTIVATE(n__nil) → NIL
U611(tt, V1, V2) → ACTIVATE(V1)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
ACTIVATE(n__s(X)) → S(X)
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U211(tt, V1) → U221(isNat(activate(V1)))
ISNAT(n__length(V1)) → ISNATILISTKIND(activate(V1))
U311(tt, V) → ACTIVATE(V)
U311(tt, V) → U321(isNatList(activate(V)))
TAKE(0, IL) → U811(and(isNatIList(IL), n__isNatIListKind(IL)))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
LENGTH(cons(N, L)) → AND(isNatList(activate(L)), n__isNatIListKind(activate(L)))
LENGTH(cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U711(tt, L) → S(length(activate(L)))
U621(tt, V2) → ACTIVATE(V2)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNAT(n__length(V1)) → ACTIVATE(V1)
ZEROS01

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(V) → ACTIVATE(V)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → U631(isNatIList(activate(V2)))
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ACTIVATE(n__0) → 01
ISNATKIND(n__length(V1)) → ACTIVATE(V1)
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
LENGTH(cons(N, L)) → ISNAT(N)
ISNAT(n__length(V1)) → U111(isNatIListKind(activate(V1)), activate(V1))
ISNATKIND(n__length(V1)) → ISNATILISTKIND(activate(V1))
ACTIVATE(n__length(X)) → LENGTH(X)
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → U121(isNatList(activate(V1)))
TAKE(0, IL) → ISNATILIST(IL)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
U611(tt, V1, V2) → ACTIVATE(V2)
U421(tt, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
U411(tt, V1, V2) → ISNAT(activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U511(tt, V1, V2) → ACTIVATE(V1)
U911(tt, IL, M, N) → CONS(activate(N), n__take(activate(M), activate(IL)))
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
LENGTH(cons(N, L)) → AND(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N)))
TAKE(s(M), cons(N, IL)) → ISNAT(N)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
U411(tt, V1, V2) → ACTIVATE(V1)
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
U421(tt, V2) → U431(isNatIList(activate(V2)))
U711(tt, L) → ACTIVATE(L)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ZEROSCONS(0, n__zeros)
U911(tt, IL, M, N) → ACTIVATE(IL)
U111(tt, V1) → ISNATLIST(activate(V1))
U511(tt, V1, V2) → ACTIVATE(V2)
U711(tt, L) → LENGTH(activate(L))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U611(tt, V1, V2) → ISNAT(activate(V1))
U521(tt, V2) → ISNATLIST(activate(V2))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(N)
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ACTIVATE(n__cons(X1, X2)) → CONS(X1, X2)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
LENGTH(nil) → 01
ACTIVATE(n__zeros) → ZEROS
U811(tt) → NIL
U521(tt, V2) → U531(isNatList(activate(V2)))
LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
ACTIVATE(n__nil) → NIL
U611(tt, V1, V2) → ACTIVATE(V1)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
ACTIVATE(n__s(X)) → S(X)
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U211(tt, V1) → U221(isNat(activate(V1)))
ISNAT(n__length(V1)) → ISNATILISTKIND(activate(V1))
U311(tt, V) → ACTIVATE(V)
U311(tt, V) → U321(isNatList(activate(V)))
TAKE(0, IL) → U811(and(isNatIList(IL), n__isNatIListKind(IL)))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
LENGTH(cons(N, L)) → AND(isNatList(activate(L)), n__isNatIListKind(activate(L)))
LENGTH(cons(N, L)) → ACTIVATE(L)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U711(tt, L) → S(length(activate(L)))
U621(tt, V2) → ACTIVATE(V2)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNAT(n__length(V1)) → ACTIVATE(V1)
ZEROS01

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 18 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
QDP
          ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

U111(tt, V1) → ISNATLIST(activate(V1))
ISNATILIST(V) → ACTIVATE(V)
U511(tt, V1, V2) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U711(tt, L) → LENGTH(activate(L))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ISNAT(activate(V1))
U521(tt, V2) → ISNATLIST(activate(V2))
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(N)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATKIND(n__length(V1)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
LENGTH(cons(N, L)) → ISNAT(N)
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNAT(n__length(V1)) → U111(isNatIListKind(activate(V1)), activate(V1))
ISNATKIND(n__length(V1)) → ISNATILISTKIND(activate(V1))
ACTIVATE(n__length(X)) → LENGTH(X)
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
TAKE(0, IL) → ISNATILIST(IL)
U611(tt, V1, V2) → ACTIVATE(V1)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
U611(tt, V1, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
U421(tt, V2) → ACTIVATE(V2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → ISNAT(activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U511(tt, V1, V2) → ACTIVATE(V1)
ISNAT(n__length(V1)) → ISNATILISTKIND(activate(V1))
U311(tt, V) → ACTIVATE(V)
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
LENGTH(cons(N, L)) → AND(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N)))
TAKE(s(M), cons(N, IL)) → ISNAT(N)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
LENGTH(cons(N, L)) → AND(isNatList(activate(L)), n__isNatIListKind(activate(L)))
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
LENGTH(cons(N, L)) → ACTIVATE(L)
U411(tt, V1, V2) → ACTIVATE(V1)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U711(tt, L) → ACTIVATE(L)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U911(tt, IL, M, N) → ACTIVATE(IL)
U621(tt, V2) → ACTIVATE(V2)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNAT(n__length(V1)) → ACTIVATE(V1)

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ISNATKIND(n__length(V1)) → ACTIVATE(V1)
ISNAT(n__length(V1)) → U111(isNatIListKind(activate(V1)), activate(V1))
ISNATKIND(n__length(V1)) → ISNATILISTKIND(activate(V1))
ACTIVATE(n__length(X)) → LENGTH(X)
ISNAT(n__length(V1)) → ISNATILISTKIND(activate(V1))
ISNAT(n__length(V1)) → ACTIVATE(V1)
The remaining pairs can at least be oriented weakly.

U111(tt, V1) → ISNATLIST(activate(V1))
ISNATILIST(V) → ACTIVATE(V)
U511(tt, V1, V2) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U711(tt, L) → LENGTH(activate(L))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ISNAT(activate(V1))
U521(tt, V2) → ISNATLIST(activate(V2))
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(N)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
LENGTH(cons(N, L)) → ISNAT(N)
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
TAKE(0, IL) → ISNATILIST(IL)
U611(tt, V1, V2) → ACTIVATE(V1)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
U611(tt, V1, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
U421(tt, V2) → ACTIVATE(V2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → ISNAT(activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U511(tt, V1, V2) → ACTIVATE(V1)
U311(tt, V) → ACTIVATE(V)
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
LENGTH(cons(N, L)) → AND(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N)))
TAKE(s(M), cons(N, IL)) → ISNAT(N)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
LENGTH(cons(N, L)) → AND(isNatList(activate(L)), n__isNatIListKind(activate(L)))
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
LENGTH(cons(N, L)) → ACTIVATE(L)
U411(tt, V1, V2) → ACTIVATE(V1)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U711(tt, L) → ACTIVATE(L)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U911(tt, IL, M, N) → ACTIVATE(IL)
U621(tt, V2) → ACTIVATE(V2)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVATE(x1)) = x1   
POL(AND(x1, x2)) = x2   
POL(ISNAT(x1)) = x1   
POL(ISNATILIST(x1)) = x1   
POL(ISNATILISTKIND(x1)) = x1   
POL(ISNATKIND(x1)) = x1   
POL(ISNATLIST(x1)) = x1   
POL(LENGTH(x1)) = x1   
POL(TAKE(x1, x2)) = x1 + x2   
POL(U11(x1, x2)) = 0   
POL(U111(x1, x2)) = x2   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U211(x1, x2)) = x2   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U311(x1, x2)) = x2   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = 1   
POL(U411(x1, x2, x3)) = x2 + x3   
POL(U42(x1, x2)) = 0   
POL(U421(x1, x2)) = x2   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 1 + x3   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 1 + x2   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 1   
POL(U611(x1, x2, x3)) = x2 + x3   
POL(U62(x1, x2)) = 1   
POL(U621(x1, x2)) = x2   
POL(U63(x1)) = 1   
POL(U71(x1, x2)) = 1 + x2   
POL(U711(x1, x2)) = x2   
POL(U81(x1)) = x1   
POL(U91(x1, x2, x3, x4)) = x2 + x3 + x4   
POL(U911(x1, x2, x3, x4)) = x2 + x3 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 1   
POL(isNatIListKind(x1)) = x1   
POL(isNatKind(x1)) = x1   
POL(isNatList(x1)) = 1 + x1   
POL(length(x1)) = 1 + x1   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = x1   
POL(n__isNatKind(x1)) = x1   
POL(n__length(x1)) = 1 + x1   
POL(n__nil) = 0   
POL(n__s(x1)) = x1   
POL(n__take(x1, x2)) = x1 + x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
QDP
              ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

U111(tt, V1) → ISNATLIST(activate(V1))
ISNATILIST(V) → ACTIVATE(V)
U511(tt, V1, V2) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
U711(tt, L) → LENGTH(activate(L))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ISNAT(activate(V1))
U521(tt, V2) → ISNATLIST(activate(V2))
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U911(tt, IL, M, N) → ACTIVATE(N)
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
LENGTH(cons(N, L)) → ISNAT(N)
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
TAKE(0, IL) → ISNATILIST(IL)
U611(tt, V1, V2) → ACTIVATE(V1)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
LENGTH(cons(N, L)) → ISNATLIST(activate(L))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
U611(tt, V1, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
U421(tt, V2) → ACTIVATE(V2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → ISNAT(activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U511(tt, V1, V2) → ACTIVATE(V1)
U311(tt, V) → ACTIVATE(V)
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
LENGTH(cons(N, L)) → AND(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N)))
U911(tt, IL, M, N) → ACTIVATE(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
U411(tt, V1, V2) → ACTIVATE(V2)
LENGTH(cons(N, L)) → AND(isNatList(activate(L)), n__isNatIListKind(activate(L)))
U511(tt, V1, V2) → ISNAT(activate(V1))
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
U111(tt, V1) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
LENGTH(cons(N, L)) → ACTIVATE(L)
U411(tt, V1, V2) → ACTIVATE(V1)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
U711(tt, L) → ACTIVATE(L)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
U621(tt, V2) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(IL)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 2 SCCs with 8 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
QDP
                    ↳ QDPOrderProof
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILIST(V) → ACTIVATE(V)
U511(tt, V1, V2) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
U521(tt, V2) → ISNATLIST(activate(V2))
U611(tt, V1, V2) → ISNAT(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
U911(tt, IL, M, N) → ACTIVATE(N)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ACTIVATE(V1)
TAKE(0, IL) → ISNATILIST(IL)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
AND(tt, X) → ACTIVATE(X)
ISNAT(n__s(V1)) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
U611(tt, V1, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
U421(tt, V2) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U511(tt, V1, V2) → ACTIVATE(V1)
U311(tt, V) → ACTIVATE(V)
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
U411(tt, V1, V2) → ACTIVATE(V1)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U911(tt, IL, M, N) → ACTIVATE(IL)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
U621(tt, V2) → ACTIVATE(V2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


ISNATILIST(V) → ACTIVATE(V)
U511(tt, V1, V2) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ISNAT(activate(V1))
ISNATILISTKIND(n__take(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V2)
ISNATILIST(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V1)
U611(tt, V1, V2) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → AND(isNat(M), n__isNatKind(M))
U611(tt, V1, V2) → ACTIVATE(V2)
U521(tt, V2) → ACTIVATE(V2)
ISNATILIST(V) → ISNATILISTKIND(activate(V))
U421(tt, V2) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → ISNAT(activate(V1))
TAKE(s(M), cons(N, IL)) → AND(isNatIList(activate(IL)), n__isNatIListKind(activate(IL)))
ISNATLIST(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__take(V1, V2)) → ACTIVATE(V1)
ISNATLIST(n__take(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ISNATILISTKIND(n__take(V1, V2)) → ACTIVATE(V2)
TAKE(0, IL) → AND(isNatIList(IL), n__isNatIListKind(IL))
U511(tt, V1, V2) → ACTIVATE(V1)
U311(tt, V) → ACTIVATE(V)
TAKE(s(M), cons(N, IL)) → AND(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N))))
TAKE(s(M), cons(N, IL)) → ISNAT(M)
TAKE(s(M), cons(N, IL)) → ISNAT(N)
U411(tt, V1, V2) → ACTIVATE(V2)
U511(tt, V1, V2) → ISNAT(activate(V1))
U411(tt, V1, V2) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ACTIVATE(IL)
TAKE(s(M), cons(N, IL)) → U911(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
ISNATLIST(n__take(V1, V2)) → U611(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U621(tt, V2) → ACTIVATE(V2)
ISNATILIST(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
The remaining pairs can at least be oriented weakly.

U521(tt, V2) → ISNATLIST(activate(V2))
U621(tt, V2) → ISNATILIST(activate(V2))
U911(tt, IL, M, N) → ACTIVATE(N)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
TAKE(0, IL) → ISNATILIST(IL)
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
AND(tt, X) → ACTIVATE(X)
ISNAT(n__s(V1)) → ACTIVATE(V1)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
U311(tt, V) → ISNATLIST(activate(V))
ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U911(tt, IL, M, N) → ACTIVATE(M)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U211(tt, V1) → ACTIVATE(V1)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
U911(tt, IL, M, N) → ACTIVATE(IL)
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ACTIVATE(x1)) = x1   
POL(AND(x1, x2)) = x2   
POL(ISNAT(x1)) = x1   
POL(ISNATILIST(x1)) = 1 + x1   
POL(ISNATILISTKIND(x1)) = x1   
POL(ISNATKIND(x1)) = x1   
POL(ISNATLIST(x1)) = 1 + x1   
POL(TAKE(x1, x2)) = 1 + x1 + x2   
POL(U11(x1, x2)) = 0   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U211(x1, x2)) = x2   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U311(x1, x2)) = 1 + x2   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = 0   
POL(U411(x1, x2, x3)) = 1 + x2 + x3   
POL(U42(x1, x2)) = 0   
POL(U421(x1, x2)) = 1 + x2   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = 1 + x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = 1 + x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U611(x1, x2, x3)) = 1 + x2 + x3   
POL(U62(x1, x2)) = 0   
POL(U621(x1, x2)) = 1 + x2   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = x2   
POL(U81(x1)) = 1 + x1   
POL(U91(x1, x2, x3, x4)) = 1 + x2 + x3 + x4   
POL(U911(x1, x2, x3, x4)) = x2 + x3 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 0   
POL(isNatIListKind(x1)) = x1   
POL(isNatKind(x1)) = x1   
POL(isNatList(x1)) = x1   
POL(length(x1)) = x1   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = x1   
POL(n__isNatKind(x1)) = x1   
POL(n__length(x1)) = x1   
POL(n__nil) = 1   
POL(n__s(x1)) = x1   
POL(n__take(x1, x2)) = 1 + x1 + x2   
POL(n__zeros) = 0   
POL(nil) = 1   
POL(s(x1)) = x1   
POL(take(x1, x2)) = 1 + x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
QDP
                        ↳ DependencyGraphProof
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNAT(n__s(V1)) → ISNATKIND(activate(V1))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))
U521(tt, V2) → ISNATLIST(activate(V2))
U621(tt, V2) → ISNATILIST(activate(V2))
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
U911(tt, IL, M, N) → ACTIVATE(N)
U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
U911(tt, IL, M, N) → ACTIVATE(M)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U611(tt, V1, V2) → U621(isNat(activate(V1)), activate(V2))
TAKE(0, IL) → ISNATILIST(IL)
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
ISNAT(n__s(V1)) → ACTIVATE(V1)
AND(tt, X) → ACTIVATE(X)
TAKE(s(M), cons(N, IL)) → ISNATILIST(activate(IL))
U211(tt, V1) → ACTIVATE(V1)
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATILIST(V) → U311(isNatIListKind(activate(V)), activate(V))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))
U211(tt, V1) → ISNAT(activate(V1))
ACTIVATE(n__take(X1, X2)) → TAKE(X1, X2)
U911(tt, IL, M, N) → ACTIVATE(IL)
U311(tt, V) → ISNATLIST(activate(V))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 4 SCCs with 13 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
QDP
                              ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2))
U521(tt, V2) → ISNATLIST(activate(V2))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, V1, V2) → U521(isNat(activate(V1)), activate(V2)) at position [0] we obtained the following new rules:

U511(tt, n__zeros, y1) → U521(isNat(zeros), activate(y1))
U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1))
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
QDP
                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__zeros, y1) → U521(isNat(zeros), activate(y1))
U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, V2) → ISNATLIST(activate(V2))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1))
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, V2) → ISNATLIST(activate(V2)) at position [0] we obtained the following new rules:

U521(tt, x0) → ISNATLIST(x0)
U521(tt, n__s(x0)) → ISNATLIST(s(x0))
U521(tt, n__nil) → ISNATLIST(nil)
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
QDP
                                      ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__zeros, y1) → U521(isNat(zeros), activate(y1))
U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1))
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__s(x0)) → ISNATLIST(s(x0))
U521(tt, n__nil) → ISNATLIST(nil)
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__zeros, y1) → U521(isNat(zeros), activate(y1)) at position [0] we obtained the following new rules:

U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U511(tt, n__zeros, y0) → U521(isNat(n__zeros), activate(y0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
QDP
                                          ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U511(tt, n__zeros, y0) → U521(isNat(n__zeros), activate(y0))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1))
U521(tt, n__nil) → ISNATLIST(nil)
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__s(x0)) → ISNATLIST(s(x0))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__0) → ISNATLIST(0)
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
QDP
                                              ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__s(x0)) → ISNATLIST(s(x0))
U521(tt, n__nil) → ISNATLIST(nil)
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__s(x0), y1) → U521(isNat(s(x0)), activate(y1)) at position [0] we obtained the following new rules:

U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
QDP
                                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__s(x0)) → ISNATLIST(s(x0))
U521(tt, n__nil) → ISNATLIST(nil)
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__s(x0)) → ISNATLIST(s(x0)) at position [0] we obtained the following new rules:

U521(tt, n__s(x0)) → ISNATLIST(n__s(x0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
QDP
                                                      ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U521(tt, n__s(x0)) → ISNATLIST(n__s(x0))
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__nil) → ISNATLIST(nil)
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
QDP
                                                          ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__nil) → ISNATLIST(nil)
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__nil) → ISNATLIST(nil) at position [0] we obtained the following new rules:

U521(tt, n__nil) → ISNATLIST(n__nil)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
QDP
                                                              ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U521(tt, n__nil) → ISNATLIST(n__nil)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
QDP
                                                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1))
U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__cons(x0, x1), y1) → U521(isNat(cons(x0, x1)), activate(y1)) at position [0] we obtained the following new rules:

U511(tt, n__cons(x0, x1), y2) → U521(isNat(n__cons(x0, x1)), activate(y2))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
QDP
                                                                      ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__cons(x0, x1), y2) → U521(isNat(n__cons(x0, x1)), activate(y2))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
QDP
                                                                          ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__0) → ISNATLIST(0)
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__0) → ISNATLIST(0) at position [0] we obtained the following new rules:

U521(tt, n__0) → ISNATLIST(n__0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
QDP
                                                                              ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, n__0) → ISNATLIST(n__0)
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
QDP
                                                                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__zeros) → ISNATLIST(zeros)
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__zeros) → ISNATLIST(zeros) at position [0] we obtained the following new rules:

U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros))
U521(tt, n__zeros) → ISNATLIST(n__zeros)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
QDP
                                                                                      ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(n__zeros)
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
QDP
                                                                                          ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__0, y1) → U521(isNat(0), activate(y1))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__0, y1) → U521(isNat(0), activate(y1)) at position [0] we obtained the following new rules:

U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
QDP
                                                                                              ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__cons(x0, x1)) → ISNATLIST(cons(x0, x1)) at position [0] we obtained the following new rules:

U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
QDP
                                                                                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__zeros) → ISNATLIST(cons(0, n__zeros)) at position [0] we obtained the following new rules:

U521(tt, n__zeros) → ISNATLIST(cons(n__0, n__zeros))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
QDP
                                                                                                      ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(tt, n__zeros) → ISNATLIST(cons(n__0, n__zeros))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__nil, y1) → U521(isNat(nil), activate(y1)) at position [0] we obtained the following new rules:

U511(tt, n__nil, y0) → U521(isNat(n__nil), activate(y0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
QDP
                                                                                                          ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__nil, y0) → U521(isNat(n__nil), activate(y0))
U521(tt, n__zeros) → ISNATLIST(cons(n__0, n__zeros))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
QDP
                                                                                                              ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(tt, n__zeros) → ISNATLIST(cons(n__0, n__zeros))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U521(tt, n__zeros) → ISNATLIST(cons(n__0, n__zeros)) at position [0] we obtained the following new rules:

U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
QDP
                                                                                                                  ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__zeros, y0) → U521(isNat(cons(0, n__zeros)), activate(y0)) at position [0] we obtained the following new rules:

U511(tt, n__zeros, y0) → U521(isNat(n__cons(0, n__zeros)), activate(y0))
U511(tt, n__zeros, y0) → U521(isNat(cons(n__0, n__zeros)), activate(y0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
QDP
                                                                                                                      ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__zeros, y0) → U521(isNat(n__cons(0, n__zeros)), activate(y0))
U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__zeros, y0) → U521(isNat(cons(n__0, n__zeros)), activate(y0))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
QDP
                                                                                                                          ↳ Narrowing
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__zeros, y0) → U521(isNat(cons(n__0, n__zeros)), activate(y0))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule U511(tt, n__zeros, y0) → U521(isNat(cons(n__0, n__zeros)), activate(y0)) at position [0] we obtained the following new rules:

U511(tt, n__zeros, y0) → U521(isNat(n__cons(n__0, n__zeros)), activate(y0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
QDP
                                                                                                                              ↳ DependencyGraphProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__zeros, y0) → U521(isNat(n__cons(n__0, n__zeros)), activate(y0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
QDP
                                                                                                                                  ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U511(tt, n__length(x0), y1) → U521(isNat(length(x0)), activate(y1))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(ISNATLIST(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = 1 + x2 + x3   
POL(U42(x1, x2)) = 1 + x2   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U62(x1, x2)) = 0   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = x2 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = x1   
POL(isNatIList(x1)) = 1 + x1   
POL(isNatIListKind(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 1 + x1   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = 0   
POL(n__isNatKind(x1)) = 0   
POL(n__length(x1)) = 1 + x1   
POL(n__nil) = 0   
POL(n__s(x1)) = 0   
POL(n__take(x1, x2)) = x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                      ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U511(tt, n__s(x0), y1) → U521(isNat(n__s(x0)), activate(y1))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Polynomial interpretation [25]:

POL(0) = 0   
POL(ISNATLIST(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = 1 + x2 + x3   
POL(U42(x1, x2)) = 0   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U62(x1, x2)) = 0   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = 1   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = x2 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 1 + x1   
POL(isNatIListKind(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(isNatList(x1)) = x1   
POL(length(x1)) = 1 + x1   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = 0   
POL(n__isNatKind(x1)) = 0   
POL(n__length(x1)) = 1 + x1   
POL(n__nil) = 0   
POL(n__s(x1)) = 1   
POL(n__take(x1, x2)) = x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = 1   
POL(take(x1, x2)) = x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
QDP
                                                                                                                                          ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U511(tt, n__take(x0, x1), y1) → U521(isNat(take(x0, x1)), activate(y1))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(ISNATLIST(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = 1 + x2 + x3   
POL(U42(x1, x2)) = 1 + x2   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U62(x1, x2)) = 0   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = 1 + x2 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = 1 + x1   
POL(isNatIListKind(x1)) = 0   
POL(isNatKind(x1)) = 0   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = 0   
POL(n__isNatKind(x1)) = 0   
POL(n__length(x1)) = 0   
POL(n__nil) = 0   
POL(n__s(x1)) = 0   
POL(n__take(x1, x2)) = 1 + x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = 1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
QDP
                                                                                                                                              ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U511(tt, n__isNatKind(x0), y1) → U521(isNat(isNatKind(x0)), activate(y1))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(ISNATLIST(x1)) = x1   
POL(U11(x1, x2)) = 1   
POL(U12(x1)) = 1   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = 0   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = x2 + x3   
POL(U42(x1, x2)) = x2   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U62(x1, x2)) = 0   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = x2 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 1 + x1   
POL(isNatIList(x1)) = x1   
POL(isNatIListKind(x1)) = 0   
POL(isNatKind(x1)) = 1   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = 0   
POL(n__isNatKind(x1)) = 1   
POL(n__length(x1)) = 0   
POL(n__nil) = 0   
POL(n__s(x1)) = 0   
POL(n__take(x1, x2)) = x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = 0   
POL(take(x1, x2)) = x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QDPOrderProof
QDP
                                                                                                                                                  ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U511(tt, n__isNatIListKind(x0), y1) → U521(isNat(isNatIListKind(x0)), activate(y1))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Polynomial interpretation with max and min functions [25]:

POL(0) = 0   
POL(ISNATLIST(x1)) = x1   
POL(U11(x1, x2)) = 0   
POL(U12(x1)) = 0   
POL(U21(x1, x2)) = 0   
POL(U22(x1)) = 0   
POL(U31(x1, x2)) = x2   
POL(U32(x1)) = 0   
POL(U41(x1, x2, x3)) = x2   
POL(U42(x1, x2)) = 0   
POL(U43(x1)) = 0   
POL(U51(x1, x2, x3)) = 0   
POL(U511(x1, x2, x3)) = x2 + x3   
POL(U52(x1, x2)) = 0   
POL(U521(x1, x2)) = x2   
POL(U53(x1)) = 0   
POL(U61(x1, x2, x3)) = 0   
POL(U62(x1, x2)) = 0   
POL(U63(x1)) = 0   
POL(U71(x1, x2)) = 0   
POL(U81(x1)) = 0   
POL(U91(x1, x2, x3, x4)) = x2 + x3 + x4   
POL(activate(x1)) = x1   
POL(and(x1, x2)) = x2   
POL(cons(x1, x2)) = x1 + x2   
POL(isNat(x1)) = 0   
POL(isNatIList(x1)) = x1   
POL(isNatIListKind(x1)) = 1   
POL(isNatKind(x1)) = 1   
POL(isNatList(x1)) = 0   
POL(length(x1)) = 0   
POL(n__0) = 0   
POL(n__and(x1, x2)) = x2   
POL(n__cons(x1, x2)) = x1 + x2   
POL(n__isNatIListKind(x1)) = 1   
POL(n__isNatKind(x1)) = 1   
POL(n__length(x1)) = 0   
POL(n__nil) = 0   
POL(n__s(x1)) = x1   
POL(n__take(x1, x2)) = x1 + x2   
POL(n__zeros) = 0   
POL(nil) = 0   
POL(s(x1)) = x1   
POL(take(x1, x2)) = x1 + x2   
POL(tt) = 0   
POL(zeros) = 0   

The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ QDPOrderProof
QDP
                                                                                                                                                      ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__length(x0)) → ISNATLIST(length(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U521(tt, n__length(x0)) → ISNATLIST(length(x0))
The remaining pairs can at least be oriented weakly.

U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U62(x1, x2) ) =
/1\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U52(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( U61(x1, ..., x3) ) =
/1\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( U81(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U41(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( activate(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( n__nil ) =
/0\
\0/

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( n__s(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( U71(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U21(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatIListKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/1\
\0/
+
/00\
\01/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U12(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U51(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\01/
·x3

M( nil ) =
/0\
\0/

M( U91(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( U31(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__length(x1) ) =
/1\
\0/
+
/00\
\00/
·x1

M( U42(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__isNatKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__zeros ) =
/0\
\0/

M( n__cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U63(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( 0 ) =
/0\
\0/

M( U43(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U22(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U53(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( n__0 ) =
/0\
\0/

M( U32(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( n__isNatIListKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( length(x1) ) =
/1\
\0/
+
/00\
\00/
·x1

Tuple symbols:
M( U511(x1, ..., x3) ) = 0+
[0,0]
·x1+
[0,0]
·x2+
[1,1]
·x3

M( U521(x1, x2) ) = 0+
[0,0]
·x1+
[1,1]
·x2

M( ISNATLIST(x1) ) = 0+
[0,1]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ QDPOrderProof
QDP
                                                                                                                                                          ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U521(tt, n__isNatIListKind(x0)) → ISNATLIST(isNatIListKind(x0))
The remaining pairs can at least be oriented weakly.

U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U62(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U52(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U61(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( U81(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U41(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( activate(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( n__nil ) =
/0\
\0/

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( n__s(x1) ) =
/0\
\0/
+
/10\
\00/
·x1

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U71(x1, x2) ) =
/1\
\0/
+
/00\
\00/
·x1+
/01\
\00/
·x2

M( U21(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatIListKind(x1) ) =
/1\
\0/
+
/00\
\00/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U12(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/10\
\00/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U51(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( nil ) =
/0\
\0/

M( U91(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3+
/00\
\00/
·x4

M( U31(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__length(x1) ) =
/1\
\0/
+
/01\
\00/
·x1

M( U42(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__isNatKind(x1) ) =
/0\
\0/
+
/10\
\00/
·x1

M( n__zeros ) =
/0\
\0/

M( n__cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatKind(x1) ) =
/0\
\0/
+
/10\
\00/
·x1

M( U63(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( 0 ) =
/0\
\0/

M( U43(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U22(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U53(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__0 ) =
/0\
\0/

M( U32(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__take(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__isNatIListKind(x1) ) =
/1\
\0/
+
/00\
\00/
·x1

M( length(x1) ) =
/1\
\0/
+
/01\
\00/
·x1

Tuple symbols:
M( U511(x1, ..., x3) ) = 0+
[0,0]
·x1+
[0,0]
·x2+
[1,1]
·x3

M( U521(x1, x2) ) = 0+
[0,0]
·x1+
[1,1]
·x2

M( ISNATLIST(x1) ) = 0+
[0,1]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QDPOrderProof
QDP
                                                                                                                                                              ↳ QDPOrderProof
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [15].


The following pairs can be oriented strictly and are deleted.


U521(tt, n__isNatKind(x0)) → ISNATLIST(isNatKind(x0))
The remaining pairs can at least be oriented weakly.

U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))
Used ordering: Matrix interpretation [3]:
Non-tuple symbols:
M( U62(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U52(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( U61(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\00/
·x3

M( U81(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U41(x1, ..., x3) ) =
/1\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/11\
\11/
·x3

M( activate(x1) ) =
/0\
\0/
+
/10\
\01/
·x1

M( n__nil ) =
/0\
\0/

M( and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( n__s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( U71(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U21(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatIListKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( tt ) =
/0\
\0/

M( isNatList(x1) ) =
/0\
\0/
+
/01\
\00/
·x1

M( zeros ) =
/0\
\0/

M( isNatIList(x1) ) =
/1\
\1/
+
/01\
\01/
·x1

M( U12(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( s(x1) ) =
/0\
\0/
+
/00\
\01/
·x1

M( isNat(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U51(x1, ..., x3) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/01\
\00/
·x3

M( nil ) =
/0\
\0/

M( U91(x1, ..., x4) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2+
/00\
\01/
·x3+
/00\
\00/
·x4

M( U31(x1, x2) ) =
/0\
\1/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( n__length(x1) ) =
/0\
\0/
+
/00\
\11/
·x1

M( U42(x1, x2) ) =
/1\
\1/
+
/00\
\00/
·x1+
/00\
\01/
·x2

M( n__isNatKind(x1) ) =
/1\
\1/
+
/00\
\00/
·x1

M( n__zeros ) =
/0\
\0/

M( n__cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U11(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\00/
·x2

M( isNatKind(x1) ) =
/1\
\1/
+
/00\
\00/
·x1

M( U63(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( 0 ) =
/0\
\0/

M( U43(x1) ) =
/1\
\1/
+
/00\
\00/
·x1

M( n__and(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/10\
\01/
·x2

M( cons(x1, x2) ) =
/0\
\0/
+
/00\
\00/
·x1+
/00\
\11/
·x2

M( U22(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( U53(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__0 ) =
/0\
\0/

M( U32(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( n__take(x1, x2) ) =
/0\
\0/
+
/00\
\01/
·x1+
/00\
\00/
·x2

M( n__isNatIListKind(x1) ) =
/0\
\0/
+
/00\
\00/
·x1

M( length(x1) ) =
/0\
\0/
+
/00\
\11/
·x1

Tuple symbols:
M( U511(x1, ..., x3) ) = 0+
[0,0]
·x1+
[0,0]
·x2+
[1,1]
·x3

M( U521(x1, x2) ) = 0+
[0,0]
·x1+
[1,1]
·x2

M( ISNATLIST(x1) ) = 0+
[0,1]
·x1


Matrix type:
We used a basic matrix type which is not further parametrizeable.


As matrix orders are CE-compatible, we used usable rules w.r.t. argument filtering in the order.
The following usable rules [17] were oriented:

zeroscons(0, n__zeros)
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
U81(tt) → nil
U62(tt, V2) → U63(isNatIList(activate(V2)))
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U71(tt, L) → s(length(activate(L)))
U63(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U43(tt) → tt
U53(tt) → tt
U52(tt, V2) → U53(isNatList(activate(V2)))
U32(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
isNatKind(n__0) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
activate(n__0) → 0
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__zeros) → zeros
isNatKind(X) → n__isNatKind(X)
and(X1, X2) → n__and(X1, X2)
niln__nil
isNatIListKind(X) → n__isNatIListKind(X)
cons(X1, X2) → n__cons(X1, X2)
s(X) → n__s(X)
length(X) → n__length(X)
0n__0
take(X1, X2) → n__take(X1, X2)
zerosn__zeros
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
activate(X) → X
activate(n__nil) → nil
activate(n__cons(X1, X2)) → cons(X1, X2)
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
activate(n__isNatIListKind(X)) → isNatIListKind(X)
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
and(tt, X) → activate(X)
activate(n__isNatKind(X)) → isNatKind(X)
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                              ↳ Narrowing
                                ↳ QDP
                                  ↳ Narrowing
                                    ↳ QDP
                                      ↳ Narrowing
                                        ↳ QDP
                                          ↳ DependencyGraphProof
                                            ↳ QDP
                                              ↳ Narrowing
                                                ↳ QDP
                                                  ↳ Narrowing
                                                    ↳ QDP
                                                      ↳ DependencyGraphProof
                                                        ↳ QDP
                                                          ↳ Narrowing
                                                            ↳ QDP
                                                              ↳ DependencyGraphProof
                                                                ↳ QDP
                                                                  ↳ Narrowing
                                                                    ↳ QDP
                                                                      ↳ DependencyGraphProof
                                                                        ↳ QDP
                                                                          ↳ Narrowing
                                                                            ↳ QDP
                                                                              ↳ DependencyGraphProof
                                                                                ↳ QDP
                                                                                  ↳ Narrowing
                                                                                    ↳ QDP
                                                                                      ↳ DependencyGraphProof
                                                                                        ↳ QDP
                                                                                          ↳ Narrowing
                                                                                            ↳ QDP
                                                                                              ↳ Narrowing
                                                                                                ↳ QDP
                                                                                                  ↳ Narrowing
                                                                                                    ↳ QDP
                                                                                                      ↳ Narrowing
                                                                                                        ↳ QDP
                                                                                                          ↳ DependencyGraphProof
                                                                                                            ↳ QDP
                                                                                                              ↳ Narrowing
                                                                                                                ↳ QDP
                                                                                                                  ↳ Narrowing
                                                                                                                    ↳ QDP
                                                                                                                      ↳ DependencyGraphProof
                                                                                                                        ↳ QDP
                                                                                                                          ↳ Narrowing
                                                                                                                            ↳ QDP
                                                                                                                              ↳ DependencyGraphProof
                                                                                                                                ↳ QDP
                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                    ↳ QDP
                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                        ↳ QDP
                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                            ↳ QDP
                                                                                                                                              ↳ QDPOrderProof
                                                                                                                                                ↳ QDP
                                                                                                                                                  ↳ QDPOrderProof
                                                                                                                                                    ↳ QDP
                                                                                                                                                      ↳ QDPOrderProof
                                                                                                                                                        ↳ QDP
                                                                                                                                                          ↳ QDPOrderProof
                                                                                                                                                            ↳ QDP
                                                                                                                                                              ↳ QDPOrderProof
QDP
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U521(tt, x0) → ISNATLIST(x0)
U511(tt, n__and(x0, x1), y1) → U521(isNat(and(x0, x1)), activate(y1))
U521(tt, n__cons(x0, x1)) → ISNATLIST(n__cons(x0, x1))
U511(tt, x0, y1) → U521(isNat(x0), activate(y1))
ISNATLIST(n__cons(V1, V2)) → U511(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U521(tt, n__take(x0, x1)) → ISNATLIST(take(x0, x1))
U521(tt, n__zeros) → ISNATLIST(n__cons(0, n__zeros))
U511(tt, n__0, y0) → U521(isNat(n__0), activate(y0))
U521(tt, n__zeros) → ISNATLIST(n__cons(n__0, n__zeros))
U521(tt, n__and(x0, x1)) → ISNATLIST(and(x0, x1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
QDP
                            ↳ QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U421(tt, V2) → ISNATILIST(activate(V2))
ISNATILIST(n__cons(V1, V2)) → U411(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
U411(tt, V1, V2) → U421(isNat(activate(V1)), activate(V2))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                            ↳ QDP
QDP
                            ↳ QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V2)
ISNATILISTKIND(n__cons(V1, V2)) → AND(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
ACTIVATE(n__isNatIListKind(X)) → ISNATILISTKIND(X)
ISNATILISTKIND(n__cons(V1, V2)) → ISNATKIND(activate(V1))
ISNATKIND(n__s(V1)) → ACTIVATE(V1)
ACTIVATE(n__isNatKind(X)) → ISNATKIND(X)
ISNATKIND(n__s(V1)) → ISNATKIND(activate(V1))
AND(tt, X) → ACTIVATE(X)
ISNATILISTKIND(n__cons(V1, V2)) → ACTIVATE(V1)
ACTIVATE(n__and(X1, X2)) → AND(X1, X2)

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
                    ↳ QDPOrderProof
                      ↳ QDP
                        ↳ DependencyGraphProof
                          ↳ AND
                            ↳ QDP
                            ↳ QDP
                            ↳ QDP
QDP
                  ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

U211(tt, V1) → ISNAT(activate(V1))
ISNAT(n__s(V1)) → U211(isNatKind(activate(V1)), activate(V1))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ QDP
          ↳ QDPOrderProof
            ↳ QDP
              ↳ DependencyGraphProof
                ↳ AND
                  ↳ QDP
QDP

Q DP problem:
The TRS P consists of the following rules:

LENGTH(cons(N, L)) → U711(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
U711(tt, L) → LENGTH(activate(L))

The TRS R consists of the following rules:

zeroscons(0, n__zeros)
U11(tt, V1) → U12(isNatList(activate(V1)))
U12(tt) → tt
U21(tt, V1) → U22(isNat(activate(V1)))
U22(tt) → tt
U31(tt, V) → U32(isNatList(activate(V)))
U32(tt) → tt
U41(tt, V1, V2) → U42(isNat(activate(V1)), activate(V2))
U42(tt, V2) → U43(isNatIList(activate(V2)))
U43(tt) → tt
U51(tt, V1, V2) → U52(isNat(activate(V1)), activate(V2))
U52(tt, V2) → U53(isNatList(activate(V2)))
U53(tt) → tt
U61(tt, V1, V2) → U62(isNat(activate(V1)), activate(V2))
U62(tt, V2) → U63(isNatIList(activate(V2)))
U63(tt) → tt
U71(tt, L) → s(length(activate(L)))
U81(tt) → nil
U91(tt, IL, M, N) → cons(activate(N), n__take(activate(M), activate(IL)))
and(tt, X) → activate(X)
isNat(n__0) → tt
isNat(n__length(V1)) → U11(isNatIListKind(activate(V1)), activate(V1))
isNat(n__s(V1)) → U21(isNatKind(activate(V1)), activate(V1))
isNatIList(V) → U31(isNatIListKind(activate(V)), activate(V))
isNatIList(n__zeros) → tt
isNatIList(n__cons(V1, V2)) → U41(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatIListKind(n__nil) → tt
isNatIListKind(n__zeros) → tt
isNatIListKind(n__cons(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatIListKind(n__take(V1, V2)) → and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2)))
isNatKind(n__0) → tt
isNatKind(n__length(V1)) → isNatIListKind(activate(V1))
isNatKind(n__s(V1)) → isNatKind(activate(V1))
isNatList(n__nil) → tt
isNatList(n__cons(V1, V2)) → U51(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
isNatList(n__take(V1, V2)) → U61(and(isNatKind(activate(V1)), n__isNatIListKind(activate(V2))), activate(V1), activate(V2))
length(nil) → 0
length(cons(N, L)) → U71(and(and(isNatList(activate(L)), n__isNatIListKind(activate(L))), n__and(isNat(N), n__isNatKind(N))), activate(L))
take(0, IL) → U81(and(isNatIList(IL), n__isNatIListKind(IL)))
take(s(M), cons(N, IL)) → U91(and(and(isNatIList(activate(IL)), n__isNatIListKind(activate(IL))), n__and(and(isNat(M), n__isNatKind(M)), n__and(isNat(N), n__isNatKind(N)))), activate(IL), M, N)
zerosn__zeros
take(X1, X2) → n__take(X1, X2)
0n__0
length(X) → n__length(X)
s(X) → n__s(X)
cons(X1, X2) → n__cons(X1, X2)
isNatIListKind(X) → n__isNatIListKind(X)
niln__nil
and(X1, X2) → n__and(X1, X2)
isNatKind(X) → n__isNatKind(X)
activate(n__zeros) → zeros
activate(n__take(X1, X2)) → take(X1, X2)
activate(n__0) → 0
activate(n__length(X)) → length(X)
activate(n__s(X)) → s(X)
activate(n__cons(X1, X2)) → cons(X1, X2)
activate(n__isNatIListKind(X)) → isNatIListKind(X)
activate(n__nil) → nil
activate(n__and(X1, X2)) → and(X1, X2)
activate(n__isNatKind(X)) → isNatKind(X)
activate(X) → X

Q is empty.
We have to consider all minimal (P,Q,R)-chains.